<?php
namespace app\Common\command;

use app\admin\model\Admin;

use app\massage\model\Coach;
use app\massage\model\Order;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Db;


class Test extends Command
{

    public function __construct()
    {
        parent::__construct();
    }

    protected function configure()
    {
        $this->setName('test')->setDescription('测试');
    }

    //执行
    protected function execute(Input $input, Output $output)
    {
        try {
            $orderModel = new Order();
            $order = $orderModel->dataInfo(['id' => 1]);
            $coach_model = new Coach();
            //发送通知
            $coach_model->paySendMsg($order);
        }catch(\Exception $e){
            $output->writeln($e->getFile()."\n".$e->getLine()."\n".$e->getMessage());
        }
        $output->writeln('完成');
    }
}